

<script type="text/javascript">
    ajax_load_options('select[name="siteID"]', '?s=XCall/Admin/get_admin_json.html', '选择租户', '{$search.siteID}');
    $('select[name="origin"] option[value="{$search.origin}"]').prop('selected', true);

    $('.search-panel .lnk-submit').click(function () {
        var $frm = $('.search-panel form');
        $frm.find('input[name="action"]').val($(this).text() == '导出' ? 'export' : 'display');
        $frm.submit();
    })

</script>